package com.fivestar.finance.app.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by hjd on 2016/5/26.
 */
public class CarTypeResp implements Serializable, Parcelable {

    String cartypeId;//车型ID
    String cartypeName;//车型名称
    String cartypeLoad;//载重
    String cartypeSize;//长*宽*高
    Double cartypeOverPrice;//超公里单价
    Double cartypeStartPrice;//起步价
    Double cartypeStartKm;//起步公里
    String cartypeImg;//车型图片

    public String getCartypeImg() {
        return cartypeImg;
    }

    public void setCartypeImg(String cartypeImg) {
        this.cartypeImg = cartypeImg;
    }

    public String getCartypeId() {
        return cartypeId;
    }

    public void setCartypeId(String cartypeId) {
        this.cartypeId = cartypeId;
    }

    public String getCartypeName() {
        return cartypeName;
    }

    public void setCartypeName(String cartypeName) {
        this.cartypeName = cartypeName;
    }

    public String getCartypeLoad() {
        return cartypeLoad;
    }

    public void setCartypeLoad(String cartypeLoad) {
        this.cartypeLoad = cartypeLoad;
    }

    public String getCartypeSize() {
        return cartypeSize;
    }

    public void setCartypeSize(String cartypeSize) {
        this.cartypeSize = cartypeSize;
    }

    public Double getCartypeOverPrice() {
        return cartypeOverPrice;
    }

    public void setCartypeOverPrice(Double cartypeOverPrice) {
        this.cartypeOverPrice = cartypeOverPrice;
    }

    public Double getCartypeStartPrice() {
        return cartypeStartPrice;
    }

    public void setCartypeStartPrice(Double cartypeStartPrice) {
        this.cartypeStartPrice = cartypeStartPrice;
    }

    public Double getCartypeStartKm() {
        return cartypeStartKm;
    }

    public void setCartypeStartKm(Double cartypeStartKm) {
        this.cartypeStartKm = cartypeStartKm;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.cartypeId);
        dest.writeString(this.cartypeName);
        dest.writeString(this.cartypeLoad);
        dest.writeString(this.cartypeSize);
        dest.writeValue(this.cartypeOverPrice);
        dest.writeValue(this.cartypeStartPrice);
        dest.writeValue(this.cartypeStartKm);
        dest.writeString(this.cartypeImg);
    }

    public CarTypeResp() {
    }

    protected CarTypeResp(Parcel in) {
        this.cartypeId = in.readString();
        this.cartypeName = in.readString();
        this.cartypeLoad = in.readString();
        this.cartypeSize = in.readString();
        this.cartypeOverPrice = (Double) in.readValue(Double.class.getClassLoader());
        this.cartypeStartPrice = (Double) in.readValue(Double.class.getClassLoader());
        this.cartypeStartKm = (Double) in.readValue(Double.class.getClassLoader());
        this.cartypeImg = in.readString();
    }

    public static final Creator<CarTypeResp> CREATOR = new Creator<CarTypeResp>() {
        @Override
        public CarTypeResp createFromParcel(Parcel source) {
            return new CarTypeResp(source);
        }

        @Override
        public CarTypeResp[] newArray(int size) {
            return new CarTypeResp[size];
        }
    };
}
